package com.hdd.model.wx;

import com.alibaba.fastjson.JSON;

/**
 * 
 * @ClassName: PayResult
 * @Description: 支付结果
 * @author yangjian
 *
 * @param <T>
 */
public class PayResult<T> implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public PayResult() {
    }

    public PayResult(Boolean success, String msg, T data) {
        this.data = data;
        this.msg = msg;
        this.success = success;
    }

    private Boolean success;

    private T data;

    private String msg;

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
